#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include"mainwindow.h"
#include"choose.h"
#include"gameover.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    choose *chosen;
    MainWindow *game;
    maps them;
    gameover* over;
    Widget(QWidget *parent = nullptr);
    ~Widget();
private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();
    void on_pushButton_5_clicked();

public slots:
    void gg(){over=nullptr;game=nullptr;this->destroy();};
    void again(){this->show();over->hide();};
    void play();
    void HQ(){game=nullptr;
over =new gameover;
over->show();
connect(over,SIGNAL(replay()),this,SLOT(again()));
connect(over,SIGNAL(gg()),this,SLOT(gg()));


             }
private:
    Ui::Widget *ui;
};
#endif
